<template>
  <input v-model="currValue" />
  <br />
  {{ modelValue }}
</template>
<script lang="ts" setup>
/** 通用查询条件 **/
defineOptions({ name: 'CommonQueryBar' })

const props = defineProps({
  modelValue: {
    type: Object,
    default: undefined
  }
})
const emit = defineEmits(['update:modelValue'])

const currValue = computed({
  get() {
    return props.modelValue
  },
  set(value: any) {
    emit('update:modelValue', value)
  }
})
</script>
